var mongoose = require('mongoose');

var Schema = mongoose.Schema;

var schema = new Schema({
  name: String,
  bgcolor: {type:String,default:'#4d67d1'},
  created_at:Date,
  owner:Schema.Types.Mixed 
});

schema.index({id:1},{unique:true});
schema.set('collection','notebooks');

module.exports = mongoose.model('notebook',schema);
